package com.sky.mapper;


import com.sky.anno.AutoFill;
import com.sky.dto.CategoryPageQueryDTO;
import com.sky.entity.Category;
import com.sky.enumeration.OperationType;

import org.apache.ibatis.annotations.Mapper;


import java.util.List;


@Mapper
public interface CategoryMapper {
     List<Category> pageQuery(CategoryPageQueryDTO categoryPageQueryDTO );


     @AutoFill(OperationType.UPDATE)
     void update(Category category);

     @AutoFill(OperationType.INSERT)
     void insert(Category category);

     void startOrStop(Integer status, Long id);



     List<Category> list(Integer type);


     void delete(Long id);
}


